"""使用递归构造fibonaci数列"""


def fibonaci(n):
    if n == 0 or n == 1:
        return 1
    else:
        return fibonaci(n - 1) + fibonaci(n - 2)


if __name__ == '__main__':
    item = int(input('请输入fibonaci数列的项数:\n'))
    for i in range(item):
        if i == item - 1:
            print(fibonaci(i))
        else:
            print(fibonaci(i), end=', ')
